<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>png++: png::basic_pixel_traits&lt; pixel, component, pixel_color_type, channels, bit_depth &gt; Struct Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">png++
   &#160;<span id="projectnumber">0.2.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacepng.html">png</a>      </li>
      <li class="navelem"><a class="el" href="structpng_1_1basic__pixel__traits.html">basic_pixel_traits</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">png::basic_pixel_traits&lt; pixel, component, pixel_color_type, channels, bit_depth &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="png::basic_pixel_traits" -->
<p>Basic pixel traits class template.  
 <a href="structpng_1_1basic__pixel__traits.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="pixel__traits_8hpp_source.html">pixel_traits.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for png::basic_pixel_traits&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="structpng_1_1basic__pixel__traits.png" usemap="#png::basic_pixel_traits&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;_map" alt=""/>
  <map id="png::basic_pixel_traits&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;_map" name="png::basic_pixel_traits&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;_map">
<area href="structpng_1_1pixel__traits_3_01packed__gray__pixel_3_01bits_01_4_01_4.html" title="Pixel traits specialization for packed_gray_pixel." alt="png::pixel_traits&lt; packed_gray_pixel&lt; bits &gt; &gt;" shape="rect" coords="0,56,478,80"/>
<area href="structpng_1_1pixel__traits_3_01packed__index__pixel_3_01bits_01_4_01_4.html" title="Pixel traits specialization for packed_index_pixel." alt="png::pixel_traits&lt; packed_index_pixel&lt; bits &gt; &gt;" shape="rect" coords="488,56,966,80"/>
</map>
 </div></div>

<p><a href="structpng_1_1basic__pixel__traits-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef pixel&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpng_1_1basic__pixel__traits.html#a546da202c87f6cebce41114dde6254ab">pixel_type</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef component&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpng_1_1basic__pixel__traits.html#afb67ccfce288ec066b2e5cf60be5512a">component_type</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacepng.html#a4f30149e7da9c8d70e84e6977a7f74da">color_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpng_1_1basic__pixel__traits.html#a975d039c4e85a70f5d5dc6d0a49206e6">get_color_type</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpng_1_1basic__pixel__traits.html#a9fa0ec9eadfb88eaf8a8cd19afa9c32f">get_channels</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpng_1_1basic__pixel__traits.html#a9387c5af0aa2ce667e106bb07cf341f4">get_bit_depth</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename pixel, typename component, color_type pixel_color_type, size_t channels = sizeof(pixel) / sizeof(component), size_t bit_depth = std::numeric_limits&lt; component &gt;::digits&gt;<br/>
struct png::basic_pixel_traits&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;</h3>

<p>Basic pixel traits class template. </p>
<p>Provides common implementation for various pixel_traits&lt;&gt; specializations. </p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a546da202c87f6cebce41114dde6254ab"></a><!-- doxytag: member="png::basic_pixel_traits::pixel_type" ref="a546da202c87f6cebce41114dde6254ab" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename component, color_type pixel_color_type, size_t channels = sizeof(pixel) / sizeof(component), size_t bit_depth = std::numeric_limits&lt; component &gt;::digits&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef pixel <a class="el" href="structpng_1_1basic__pixel__traits.html">png::basic_pixel_traits</a>&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;::<a class="el" href="structpng_1_1basic__pixel__traits.html#a546da202c87f6cebce41114dde6254ab">pixel_type</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afb67ccfce288ec066b2e5cf60be5512a"></a><!-- doxytag: member="png::basic_pixel_traits::component_type" ref="afb67ccfce288ec066b2e5cf60be5512a" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename component, color_type pixel_color_type, size_t channels = sizeof(pixel) / sizeof(component), size_t bit_depth = std::numeric_limits&lt; component &gt;::digits&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef component <a class="el" href="structpng_1_1basic__pixel__traits.html">png::basic_pixel_traits</a>&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;::<a class="el" href="structpng_1_1basic__pixel__traits.html#afb67ccfce288ec066b2e5cf60be5512a">component_type</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a975d039c4e85a70f5d5dc6d0a49206e6"></a><!-- doxytag: member="png::basic_pixel_traits::get_color_type" ref="a975d039c4e85a70f5d5dc6d0a49206e6" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename component, color_type pixel_color_type, size_t channels = sizeof(pixel) / sizeof(component), size_t bit_depth = std::numeric_limits&lt; component &gt;::digits&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="namespacepng.html#a4f30149e7da9c8d70e84e6977a7f74da">color_type</a> <a class="el" href="structpng_1_1basic__pixel__traits.html">png::basic_pixel_traits</a>&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;::<a class="el" href="structpng_1_1basic__pixel__traits.html#a975d039c4e85a70f5d5dc6d0a49206e6">get_color_type</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9fa0ec9eadfb88eaf8a8cd19afa9c32f"></a><!-- doxytag: member="png::basic_pixel_traits::get_channels" ref="a9fa0ec9eadfb88eaf8a8cd19afa9c32f" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename component, color_type pixel_color_type, size_t channels = sizeof(pixel) / sizeof(component), size_t bit_depth = std::numeric_limits&lt; component &gt;::digits&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static size_t <a class="el" href="structpng_1_1basic__pixel__traits.html">png::basic_pixel_traits</a>&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;::<a class="el" href="structpng_1_1basic__pixel__traits.html#a9fa0ec9eadfb88eaf8a8cd19afa9c32f">get_channels</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9387c5af0aa2ce667e106bb07cf341f4"></a><!-- doxytag: member="png::basic_pixel_traits::get_bit_depth" ref="a9387c5af0aa2ce667e106bb07cf341f4" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename pixel, typename component, color_type pixel_color_type, size_t channels = sizeof(pixel) / sizeof(component), size_t bit_depth = std::numeric_limits&lt; component &gt;::digits&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static size_t <a class="el" href="structpng_1_1basic__pixel__traits.html">png::basic_pixel_traits</a>&lt; pixel, component, pixel_color_type, channels, bit_depth &gt;::<a class="el" href="structpng_1_1basic__pixel__traits.html#a9387c5af0aa2ce667e106bb07cf341f4">get_bit_depth</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="pixel__traits_8hpp_source.html">pixel_traits.hpp</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jan 25 2013 14:10:10 for png++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
